package com.fr.report.core.barcode;

import com.fr.base.core.GraphHelper;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

public final class BarcodeImageHandler
{
  public static BufferedImage getImage(BarcodeImpl paramBarcodeImpl)
  {
    BufferedImage localBufferedImage = GraphHelper.createBufferedImage(paramBarcodeImpl.getWidth(), paramBarcodeImpl.getHeight(), 13);
    Graphics2D localGraphics2D = localBufferedImage.createGraphics();
    paramBarcodeImpl.draw(localGraphics2D, 0, 0);
    localBufferedImage.flush();
    return localBufferedImage;
  }
}